PDF Plugin for Xojo

Page.TextRectBaseline Method (console safe)

Draws a text within given rectangle where baseline of the first text line is passed in instead of top of the rectangle.

TextRectBaseline(
   text as String,
   left as Single,
   baseline as Single,
   width as Single,
   height as Single,
   alignment as Page.TextAlignmentEnum,
   ByRef length as Integer)

Parameters

text
The text to draw.
left
Left coordinate of the rectangle
baseline
Baseline of the first test-line to be displayed.
width
Width of the rectangle.
height
Height of the Rectangle
alignment
Alignment of the text within the rectangle. This can be any value of the constants defined in Page.TextAlignmentEnum.
length (ByRef parameter)
This ByRef variable will return number of letters drawn in the rectangle.

Remarks



This methods baseline functionality is compatible with how ShowText works.

See Also

Page Class